//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop

#include "DPCnsPrd.h"
#include "DPGrfPrd.h"
#include "RLCnsPrd.h"

//---------------------------------------------------------------------------
#pragma package( smart_init )
#pragma link "DialPad"
#pragma link "PHDS"
#pragma resource "*.dfm"
TDPCnsPrd1*  DPCnsPrd1;

//---------------------------------------------------------------------------
__fastcall TDPCnsPrd1::TDPCnsPrd1( TComponent*  Owner ) : TDiPad( Owner )
{
}

//---------------------------------------------------------------------------
void __fastcall TDPCnsPrd1::BitBtn4Click( TObject*  Sender )
{
  try
   {
    DPGrfPrd1 = new TDPGrfPrd1( NULL );
    DPGrfPrd1->ShowModal();
   }

  __finally
   {
    delete DPGrfPrd1;
   }

}

//---------------------------------------------------------------------------
void __fastcall TDPCnsPrd1::BitBtn3Click( TObject*  Sender )
{
  TPedeRel1*  PR;
  TRLCnsPrd1*  RLCnsPrd1 = new TRLCnsPrd1( NULL );
  try
   {
    PR = new TPedeRel1( NULL );
    PR->Report = RLCnsPrd1->PHReport1;
    PR->ShowModal();
   }

  __finally
   {
    Close();
    delete RLCnsPrd1;
    delete PR;
   }

}

//---------------------------------------------------------------------------

